using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class PT_PTMVManagerBase
    {
        public PT_PTMVManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity Insert(PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity Update(PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity UpdateWithCondition(PT_PTMVEntity obj,PT_PTMVEntity objCond)
        { 
            return (PT_PTMVEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public PT_PTMVEntity Delete(PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.Delete(obj);             
        }
 
 
        public PT_PTMVEntity DeleteWithCondition(PT_PTMVEntity objCond)
        { 
            return (PT_PTMVEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByCreatedBy (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedBy 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByCreatedBy (string CreatedBy )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.CreatedBy = CreatedBy;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByCreatedDate (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedDate 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByCreatedDate (DateTime CreatedDate )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.CreatedDate = CreatedDate;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DISCOUNT_AMNT duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByDISCOUNT_AMNT (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"DISCOUNT_AMNT");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DISCOUNT_AMNT 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByDISCOUNT_AMNT (double DISCOUNT_AMNT )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.DISCOUNT_AMNT = DISCOUNT_AMNT;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"DISCOUNT_AMNT");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteById (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteById (int Id )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.Id = Id;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByIsDeleted (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"IsDeleted");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IsDeleted 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByIsDeleted (bool IsDeleted )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.IsDeleted = IsDeleted;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"IsDeleted");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ORDER_NO duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByORDER_NO (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"ORDER_NO");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ORDER_NO 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByORDER_NO (string ORDER_NO )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.ORDER_NO = ORDER_NO;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"ORDER_NO");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PART_NO duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByPART_NO (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"PART_NO");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PART_NO 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByPART_NO (string PART_NO )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.PART_NO = PART_NO;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"PART_NO");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PRICE duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByPRICE (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"PRICE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PRICE 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByPRICE (double PRICE )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.PRICE = PRICE;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"PRICE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien QTY duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByQTY (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"QTY");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien QTY 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByQTY (int QTY )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.QTY = QTY;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"QTY");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteBySTOCK_OUT_DAT (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"STOCK_OUT_DAT");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien STOCK_OUT_DAT 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteBySTOCK_OUT_DAT (string STOCK_OUT_DAT )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.STOCK_OUT_DAT = STOCK_OUT_DAT;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"STOCK_OUT_DAT");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ToolType duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByToolType (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"ToolType");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ToolType 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByToolType (string ToolType )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.ToolType = ToolType;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"ToolType");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TotalMoney duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByTotalMoney (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"TotalMoney");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TotalMoney 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByTotalMoney (double TotalMoney )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.TotalMoney = TotalMoney;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"TotalMoney");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByUpdatedBy (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedBy 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByUpdatedBy (string UpdatedBy )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.UpdatedBy = UpdatedBy;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByUpdatedDate (PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedDate 
        /// </summary>
        /// <returns>PT_PTMVEntity</returns>
        public PT_PTMVEntity DeleteByUpdatedDate (DateTime UpdatedDate )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.UpdatedDate = UpdatedDate;  
            return (PT_PTMVEntity)Adapter.DeleteByField(obj,"UpdatedDate");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public PT_PTMVEntity Select(PT_PTMVEntity obj)
        { 
            return (PT_PTMVEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(PT_PTMVEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(PT_PTMVEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new PT_PTMVEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new PT_PTMVEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<PT_PTMVEntity> SelectAllLST()
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new PT_PTMVEntity()),new PT_PTMVEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<PT_PTMVEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new PT_PTMVEntity(),option),new PT_PTMVEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CreatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByCreatedByLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByCreatedByLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CreatedBy",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (string CreatedBy )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.CreatedBy = CreatedBy;  
            return Adapter.SelectByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (string CreatedBy, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.CreatedBy = CreatedBy;  
            return Adapter.SelectByField(obj,"CreatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByCreatedByLST (string CreatedBy )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.CreatedBy = CreatedBy;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByCreatedByLST (string CreatedBy, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.CreatedBy = CreatedBy;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CreatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByCreatedDateLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByCreatedDateLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CreatedDate",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (DateTime CreatedDate )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.CreatedDate = CreatedDate;  
            return Adapter.SelectByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (DateTime CreatedDate, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.CreatedDate = CreatedDate;  
            return Adapter.SelectByField(obj,"CreatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByCreatedDateLST (DateTime CreatedDate )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.CreatedDate = CreatedDate;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByCreatedDateLST (DateTime CreatedDate, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.CreatedDate = CreatedDate;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DISCOUNT_AMNT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDISCOUNT_AMNT (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"DISCOUNT_AMNT");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DISCOUNT_AMNT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDISCOUNT_AMNT (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"DISCOUNT_AMNT",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DISCOUNT_AMNT duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByDISCOUNT_AMNTLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DISCOUNT_AMNT"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DISCOUNT_AMNT duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByDISCOUNT_AMNTLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"DISCOUNT_AMNT",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DISCOUNT_AMNT 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDISCOUNT_AMNT (double DISCOUNT_AMNT )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.DISCOUNT_AMNT = DISCOUNT_AMNT;  
            return Adapter.SelectByField(obj,"DISCOUNT_AMNT");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DISCOUNT_AMNT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDISCOUNT_AMNT (double DISCOUNT_AMNT, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.DISCOUNT_AMNT = DISCOUNT_AMNT;  
            return Adapter.SelectByField(obj,"DISCOUNT_AMNT",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DISCOUNT_AMNT 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByDISCOUNT_AMNTLST (double DISCOUNT_AMNT )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.DISCOUNT_AMNT = DISCOUNT_AMNT;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DISCOUNT_AMNT"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DISCOUNT_AMNT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByDISCOUNT_AMNTLST (double DISCOUNT_AMNT, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.DISCOUNT_AMNT = DISCOUNT_AMNT;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DISCOUNT_AMNT",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByIdLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByIdLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Id",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (int Id )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (int Id, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByIdLST (int Id )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.Id = Id;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByIdLST (int Id, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.Id = Id;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsDeleted (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"IsDeleted");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsDeleted (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"IsDeleted",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByIsDeletedLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsDeleted"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByIsDeletedLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"IsDeleted",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsDeleted (bool IsDeleted )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.IsDeleted = IsDeleted;  
            return Adapter.SelectByField(obj,"IsDeleted");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsDeleted (bool IsDeleted, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.IsDeleted = IsDeleted;  
            return Adapter.SelectByField(obj,"IsDeleted",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByIsDeletedLST (bool IsDeleted )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.IsDeleted = IsDeleted;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsDeleted"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByIsDeletedLST (bool IsDeleted, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.IsDeleted = IsDeleted;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsDeleted",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ORDER_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByORDER_NO (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"ORDER_NO");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ORDER_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByORDER_NO (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ORDER_NO",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ORDER_NO duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByORDER_NOLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ORDER_NO"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ORDER_NO duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByORDER_NOLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ORDER_NO",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ORDER_NO 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByORDER_NO (string ORDER_NO )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.ORDER_NO = ORDER_NO;  
            return Adapter.SelectByField(obj,"ORDER_NO");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ORDER_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByORDER_NO (string ORDER_NO, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.ORDER_NO = ORDER_NO;  
            return Adapter.SelectByField(obj,"ORDER_NO",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ORDER_NO 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByORDER_NOLST (string ORDER_NO )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.ORDER_NO = ORDER_NO;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ORDER_NO"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ORDER_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByORDER_NOLST (string ORDER_NO, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.ORDER_NO = ORDER_NO;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ORDER_NO",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PART_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPART_NO (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"PART_NO");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PART_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPART_NO (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"PART_NO",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PART_NO duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByPART_NOLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PART_NO"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PART_NO duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByPART_NOLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"PART_NO",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PART_NO 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPART_NO (string PART_NO )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.PART_NO = PART_NO;  
            return Adapter.SelectByField(obj,"PART_NO");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PART_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPART_NO (string PART_NO, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.PART_NO = PART_NO;  
            return Adapter.SelectByField(obj,"PART_NO",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PART_NO 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByPART_NOLST (string PART_NO )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.PART_NO = PART_NO;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PART_NO"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PART_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByPART_NOLST (string PART_NO, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.PART_NO = PART_NO;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PART_NO",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PRICE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPRICE (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"PRICE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PRICE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPRICE (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"PRICE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PRICE duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByPRICELST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PRICE"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PRICE duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByPRICELST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"PRICE",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PRICE 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPRICE (double PRICE )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.PRICE = PRICE;  
            return Adapter.SelectByField(obj,"PRICE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PRICE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPRICE (double PRICE, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.PRICE = PRICE;  
            return Adapter.SelectByField(obj,"PRICE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PRICE 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByPRICELST (double PRICE )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.PRICE = PRICE;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PRICE"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PRICE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByPRICELST (double PRICE, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.PRICE = PRICE;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PRICE",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien QTY duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByQTY (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"QTY");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien QTY duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByQTY (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"QTY",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien QTY duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByQTYLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"QTY"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien QTY duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByQTYLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"QTY",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien QTY 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByQTY (int QTY )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.QTY = QTY;  
            return Adapter.SelectByField(obj,"QTY");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien QTY duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByQTY (int QTY, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.QTY = QTY;  
            return Adapter.SelectByField(obj,"QTY",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien QTY 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByQTYLST (int QTY )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.QTY = QTY;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"QTY"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien QTY duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByQTYLST (int QTY, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.QTY = QTY;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"QTY",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySTOCK_OUT_DAT (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"STOCK_OUT_DAT");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySTOCK_OUT_DAT (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"STOCK_OUT_DAT",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectBySTOCK_OUT_DATLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"STOCK_OUT_DAT"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectBySTOCK_OUT_DATLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"STOCK_OUT_DAT",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySTOCK_OUT_DAT (string STOCK_OUT_DAT )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.STOCK_OUT_DAT = STOCK_OUT_DAT;  
            return Adapter.SelectByField(obj,"STOCK_OUT_DAT");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySTOCK_OUT_DAT (string STOCK_OUT_DAT, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.STOCK_OUT_DAT = STOCK_OUT_DAT;  
            return Adapter.SelectByField(obj,"STOCK_OUT_DAT",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectBySTOCK_OUT_DATLST (string STOCK_OUT_DAT )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.STOCK_OUT_DAT = STOCK_OUT_DAT;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"STOCK_OUT_DAT"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectBySTOCK_OUT_DATLST (string STOCK_OUT_DAT, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.STOCK_OUT_DAT = STOCK_OUT_DAT;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"STOCK_OUT_DAT",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ToolType duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByToolType (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"ToolType");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ToolType duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByToolType (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ToolType",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ToolType duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByToolTypeLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ToolType"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ToolType duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByToolTypeLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ToolType",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ToolType 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByToolType (string ToolType )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.ToolType = ToolType;  
            return Adapter.SelectByField(obj,"ToolType");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ToolType duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByToolType (string ToolType, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.ToolType = ToolType;  
            return Adapter.SelectByField(obj,"ToolType",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ToolType 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByToolTypeLST (string ToolType )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.ToolType = ToolType;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ToolType"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ToolType duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByToolTypeLST (string ToolType, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.ToolType = ToolType;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ToolType",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalMoney duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTotalMoney (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"TotalMoney");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalMoney duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTotalMoney (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"TotalMoney",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalMoney duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByTotalMoneyLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TotalMoney"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalMoney duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByTotalMoneyLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"TotalMoney",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalMoney 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTotalMoney (double TotalMoney )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.TotalMoney = TotalMoney;  
            return Adapter.SelectByField(obj,"TotalMoney");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalMoney duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTotalMoney (double TotalMoney, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.TotalMoney = TotalMoney;  
            return Adapter.SelectByField(obj,"TotalMoney",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalMoney 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByTotalMoneyLST (double TotalMoney )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.TotalMoney = TotalMoney;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TotalMoney"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TotalMoney duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByTotalMoneyLST (double TotalMoney, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.TotalMoney = TotalMoney;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TotalMoney",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UpdatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByUpdatedByLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByUpdatedByLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UpdatedBy",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (string UpdatedBy )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.UpdatedBy = UpdatedBy;  
            return Adapter.SelectByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (string UpdatedBy, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.UpdatedBy = UpdatedBy;  
            return Adapter.SelectByField(obj,"UpdatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByUpdatedByLST (string UpdatedBy )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.UpdatedBy = UpdatedBy;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByUpdatedByLST (string UpdatedBy, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.UpdatedBy = UpdatedBy;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (PT_PTMVEntity obj)
        { 
            return Adapter.SelectByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (PT_PTMVEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByUpdatedDateLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectByUpdatedDateLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UpdatedDate",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (DateTime UpdatedDate )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.UpdatedDate = UpdatedDate;  
            return Adapter.SelectByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (DateTime UpdatedDate, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.UpdatedDate = UpdatedDate;  
            return Adapter.SelectByField(obj,"UpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByUpdatedDateLST (DateTime UpdatedDate )
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.UpdatedDate = UpdatedDate;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate"),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_PTMVEntity> SelectByUpdatedDateLST (DateTime UpdatedDate, SelectOptions option)
        { 
            PT_PTMVEntity obj = new PT_PTMVEntity();
            obj.UpdatedDate = UpdatedDate;  
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate",option),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectWithConditionLST (PT_PTMVEntity obj)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new PT_PTMVEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<PT_PTMVEntity></returns>
        public List<PT_PTMVEntity> SelectWithConditionLST (PT_PTMVEntity obj,SelectOptions option)
        { 
            return  (List<PT_PTMVEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new PT_PTMVEntity());
        }

}
}
